To programmatically put Automatic Preview into Landscape Orientation add highlighted line to your code.
But if you do that you will loose iPhone frame around the Root View.
To place Automatic Preview below the Code use following command: Adjust Editor Options - Layout - Canvas on Bottom.
ContentView.swift
import SwiftUI
struct ContentView: View {
var body: some View {
Text("Hello, World!")
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView().previewLayout(.fixed(width: 896, height: 414))
}
}
Automatic Preview in Landscape Orientation (without iPhone frame around it)